package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

/**
 * @author cjr
 */
@Data
@Builder
public class LiveMyResponse {
    @ApiModelProperty(value = "预告或在播", dataType = "LiveMyResponse.Room")
    private Room roomLast;
    @ApiModelProperty(value = "回放列表", dataType = "LiveMyResponse.Room")
    private PageResponse2<Room> rooms;
    @ApiModelProperty("开播状态: 0无权限 1创建直播 2开播")
    private Integer status;

    @ApiModel("LiveMyResponse.Room")
    @Data
    @Builder
    public static class Room {
        @ApiModelProperty("直播间ID")
        private Integer roomId;
        @ApiModelProperty("创建时间（时间戳）")
        private Long time;
        @ApiModelProperty("预告时间（时间戳）")
        private Long preTime;
        @ApiModelProperty("直播间标题")
        private String title;
        @ApiModelProperty("直播间图片")
        private String photo;
        @ApiModelProperty("观看人数")
        private Integer viewNum;
        @ApiModelProperty("状态:0预告 1在播 2回放")
        private Integer status;
        @ApiModelProperty("回放地址")
        private String replayUrl;
    }
}
